package org.hxd.job.service;

import org.hxd.job.dao.JobDao;
import org.hxd.pojo.Job;
import org.hxd.units.PageModel;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class IJobServiceImpl implements IJobService {
    @Autowired
    JobDao jobDao;

    @Override
    public List<Job> findjob(String name, PageModel pageModel) {
        return jobDao.findjob(name,pageModel);
    }

    @Override
    public int findjobcount(String name) {
        return jobDao.findjobcount(name);
    }

    @Override
    public Job findJobById(int id) {
        return jobDao.findJobById(id);
    }

    @Override
    public int modifyJob(Job job) {
        return jobDao.modifyJob(job);
    }

    @Override
    public int removeJob(Integer[] ids) {
        return jobDao.removeJob(ids);
    }

    @Override
    public int addJob(Job job) {
        return jobDao.addJob(job);
    }
}
